from odoo import api, models


class BadEventReport(models.AbstractModel):
    _name = 'report.ThreeDragon_report.ThreeDragon'
    _description = '三龙销售单报表'

    @api.model
    def _get_report_values(self, docids, data=None):
        dragon_sale_report_template = self.env['report'].browse(docids)
        docargs = {
            'doc_ids': docids,
            "docs": dragon_sale_report_template
        }
        return dragon_sale_report_template.render('ThreeDragon_report.ThreeDragon', docargs)
